var url = require('url');
var indexMain = require('./index_main.js');
var parseDns = require('./parseDns.js');

exports.route = function (req, resp) {
    var pathName = url.parse(req.url).pathname;
    switch (pathName) {
        case '/parse' :
            parseDns.parse(req, resp);
            break;
        default :
            indexMain.goToIndex(req, resp);
            break;
    }
};